package Sport;

import java.util.HashSet;

public class SportDemo {
    public static void main(String[] args) {
        HashSet<Tabletennisman> hs = new HashSet<Tabletennisman>();
        Tabletennisman ttt = new Tabletennisman("hanser", 30);
        Tabletennisman ttt2 = new Tabletennisman("hanser04", 30);
        Tabletennisman ttt3 = new Tabletennisman("hanser05", 30);
        hs.add(ttt);
        hs.add(ttt2);
        hs.add(ttt3);
        for(Tabletennisman t:hs){
            System.out.println(t.getAge()+"   "+t.getName());
        }
        ttt.eat();
        ttt.speakenglish();
        ttt.study();

    }
}
